<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="demo.php" method="get" name="name1">
        用户名:</label> <input type="text" name="name2" value="请输入用户名" maxlength="9"><br />
        密码: <input type="password"><br />
        性别: 男<input type="radio"> 女<input type="radio"><br />
        爱好: 吃饭 <input type="checkbox"> 睡觉 <input type="checkbox" checked="checked"><br />
        <input type="submit" value="免费注册">
        <input type="reset" value="重置">
        <input type="button" value="获取短信验证码"><br>
        上传头像: <input type="file">
    </form>
</body>

</html>